Joey Hess [Thu, 22 Sep 2022 18:40:29 +0000 (14:40 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 22 Sep 2022 18:35:20 +0000 (14:35 -0400)]
drain transferrer read handle when shutting it down
Fixes updating git index file after getting an unlocked file when
annex.stalldetection is set.
The transferrer may want to send additional protocol messages when it's
shut down. Closing the read handle prevented it from doing that, and caused
it to crash rather than cleanly shutting down.
Draining the handle without processing the protocol seemed ok to do,
because anything it outputs is going to be some side message displayed
at shutdown. Displaying those once per transferrer process that is running
seems unncessary.
Sponsored-by: Dartmouth College's DANDI project
yarikoptic [Thu, 22 Sep 2022 18:14:15 +0000 (18:14 +0000)]
Added a comment
Joey Hess [Thu, 22 Sep 2022 18:03:31 +0000 (14:03 -0400)]
comment
Joey Hess [Thu, 22 Sep 2022 17:40:13 +0000 (13:40 -0400)]
comment
Joey Hess [Thu, 22 Sep 2022 17:37:26 +0000 (13:37 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 22 Sep 2022 17:37:01 +0000 (13:37 -0400)]
correct my comment
yarikoptic [Thu, 22 Sep 2022 17:34:35 +0000 (17:34 +0000)]
Added a comment
Joey Hess [Thu, 22 Sep 2022 17:25:12 +0000 (13:25 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 22 Sep 2022 17:21:10 +0000 (13:21 -0400)]
reproduced this now
Joey Hess [Thu, 22 Sep 2022 17:21:10 +0000 (13:21 -0400)]
reproduced this now
Joey Hess [Thu, 22 Sep 2022 16:59:53 +0000 (12:59 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 22 Sep 2022 16:47:40 +0000 (12:47 -0400)]
Improved handling of --time-limit when combined with -J
When concurrency is enabled, there can be worker threads still running
when the time limit is checked. Exiting right there does not
give those threads time to finish what they're doing. Instead, the seeking
is wrapped up, and git-annex then shuts down cleanly.
The whole point of --time-limit existing, rather than using timeout(1)
when running git-annex is to let git-annex finish the action(s) it is
working on when the time limit is reached, and shut down cleanly.
I noticed this problem when investigating why restagePointerFile might
not have run after get/drop of an unlocked file. With --time-limit -J,
a worker thread may have finished updating a work tree file, and be killed
by the time limit check before it can run restagePointerFile. So despite
--time-limit running the shutdown actions, the work tree file didn't get
restaged.
Sponsored-by: Dartmouth College's DANDI project
nobodyinperson [Thu, 22 Sep 2022 06:24:05 +0000 (06:24 +0000)]
Added a comment
removed
jgoerzen [Thu, 22 Sep 2022 03:40:04 +0000 (03:40 +0000)]
Added a comment
yarikoptic [Thu, 22 Sep 2022 01:33:24 +0000 (01:33 +0000)]
Added a comment
yarikoptic [Thu, 22 Sep 2022 01:03:18 +0000 (01:03 +0000)]
Added a comment
Gus [Wed, 21 Sep 2022 22:30:20 +0000 (22:30 +0000)]
Added a comment
Joey Hess [Wed, 21 Sep 2022 22:17:21 +0000 (18:17 -0400)]
comment
Joey Hess [Wed, 21 Sep 2022 20:13:08 +0000 (16:13 -0400)]
wording
Joey Hess [Wed, 21 Sep 2022 20:11:10 +0000 (16:11 -0400)]
comment
Joey Hess [Wed, 21 Sep 2022 19:17:56 +0000 (15:17 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 21 Sep 2022 19:00:13 +0000 (15:00 -0400)]
annex.diskreserve default increased from 1 mb to 100 mb
It's hard to know what's a good default for this. But 1 mb seems way too
small, because it's very easy for a git pull or some similar operation
that we don't think of as using much space to use up 1 mb of space.
Most people would want to free up some space if a filesystem only had 100
mb free. But on a small VPS, it's probably not uncommon to have only 1 gb
free. So 1 gb is too large for annex.diskreserve.
While old 1 gb USB keys are around, it's unlikely that anyone is
relying on them to shuttle annex data around; it would be worth anyone's
time to upgrade to a 32 gb or larger cheap modern USB key ($5).
Sponsored-by: Kevin Mueller on Patreon
yarikoptic [Wed, 21 Sep 2022 18:49:07 +0000 (18:49 +0000)]
Added a comment
yarikoptic [Wed, 21 Sep 2022 18:46:50 +0000 (18:46 +0000)]
Added a comment
Joey Hess [Wed, 21 Sep 2022 18:32:42 +0000 (14:32 -0400)]
comment and todo
Joey Hess [Wed, 21 Sep 2022 17:42:20 +0000 (13:42 -0400)]
comment
Joey Hess [Wed, 21 Sep 2022 17:17:21 +0000 (13:17 -0400)]
comment
Joey Hess [Wed, 21 Sep 2022 17:04:47 +0000 (13:04 -0400)]
comment
Joey Hess [Wed, 21 Sep 2022 14:41:12 +0000 (10:41 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Added a comment: "not inbackend=URL" is failed with parse error
Added a comment: "not inbackend=URL" is failed with parse error
yarikoptic [Tue, 20 Sep 2022 22:50:46 +0000 (22:50 +0000)]
Added a comment
yarikoptic [Tue, 20 Sep 2022 22:22:42 +0000 (22:22 +0000)]
initial report on odd "modified" status
Gus [Tue, 20 Sep 2022 22:07:30 +0000 (22:07 +0000)]
Added a comment
Added a comment
Joey Hess [Tue, 20 Sep 2022 18:55:34 +0000 (14:55 -0400)]
wording
Joey Hess [Tue, 20 Sep 2022 18:52:43 +0000 (14:52 -0400)]
skip checkRepoConfigInaccessible when git directory specified explicitly
Fix a reversion that prevented git-annex from working in a repository when
--git-dir or GIT_DIR is specified to relocate the git directory to
somewhere else. (Introduced in version 10.
20220525)
checkRepoConfigInaccessible could still run git config --list, just passing
--git-dir. It seems not necessary, because I know that passing --git-dir
bypasses git's check for repo ownership. I suppose it might be that git
eventually changes to check something about the ownership of the working
tree, so passing --git-dir without --work-tree would still be worth doing.
But for now this is the simple fix.
Sponsored-by: Nicholas Golder-Manning on Patreon
Joey Hess [Tue, 20 Sep 2022 18:16:15 +0000 (14:16 -0400)]
bug report rescued from forum
Joey Hess [Tue, 20 Sep 2022 18:06:09 +0000 (14:06 -0400)]
comment
Joey Hess [Tue, 20 Sep 2022 18:02:09 +0000 (14:02 -0400)]
comment
Joey Hess [Tue, 20 Sep 2022 17:54:34 +0000 (13:54 -0400)]
wontfix
Joey Hess [Tue, 20 Sep 2022 17:49:21 +0000 (13:49 -0400)]
comment
Joey Hess [Tue, 20 Sep 2022 17:35:47 +0000 (13:35 -0400)]
fixed
Joey Hess [Tue, 20 Sep 2022 17:33:57 +0000 (13:33 -0400)]
try retrieval from more than one export location when the first fails
Combined with commit
0ffc59d34107a3ee671b90fc7c59ca09c00abbf5, this
fixes the case where there are duplicate files on the special remote,
and the first gets modified/deleted, while the second is still present.
directory, adb: Fixed a bug when importtree=yes, and multiple files in the
special remote have the same content, that caused it to refuse to get a
file from the special remote, incorrectly complaining that it had changed,
due to only accepting the inode+mtime of one file (that was since modified
or deleted) and not accepting the inode+mtime of other duplicate files.
Sponsored-by: Max Thoursie on Patreon
Joey Hess [Tue, 20 Sep 2022 17:15:31 +0000 (13:15 -0400)]
change retrieveExportWithContentIdentifier to take a list of ContentIdentifier
This partly fixes an issue where there are duplicate files in the
special remote, and the first file gets swapped with another duplicate,
or deleted. The swap case is fixed by this, the deleted case will need
other changes.
This makes retrieveExportWithContentIdentifier take a list of allowed
ContentIdentifier, same as storeExportWithContentIdentifier,
removeExportWithContentIdentifier, and
checkPresentExportWithContentIdentifier.
Of the special remotes that support importtree, borg is a special case
and does not use content identifiers, S3 I assume can't get mixed up
like this, directory certainly has the problem, and adb also appears to
have had the problem.
Sponsored-by: Graham Spencer on Patreon
Joey Hess [Tue, 20 Sep 2022 16:56:16 +0000 (12:56 -0400)]
comment
Joey Hess [Tue, 20 Sep 2022 16:39:40 +0000 (12:39 -0400)]
comment
Joey Hess [Tue, 20 Sep 2022 16:20:33 +0000 (12:20 -0400)]
comment
nobodyinperson [Tue, 20 Sep 2022 12:11:03 +0000 (12:11 +0000)]
jgoerzen [Mon, 19 Sep 2022 14:49:02 +0000 (14:49 +0000)]
Added a comment
jgoerzen [Mon, 19 Sep 2022 13:55:07 +0000 (13:55 +0000)]
Added a comment
Gus [Mon, 19 Sep 2022 13:49:15 +0000 (13:49 +0000)]
Added a comment
Lukey [Mon, 19 Sep 2022 10:03:39 +0000 (10:03 +0000)]
Added a comment
Gus [Sun, 18 Sep 2022 12:21:07 +0000 (12:21 +0000)]
Gus [Sun, 18 Sep 2022 12:20:16 +0000 (12:20 +0000)]
eph@6377f195575d4a04abc70f20e0b00dffcc597d00 [Sat, 17 Sep 2022 21:19:13 +0000 (21:19 +0000)]
Added a comment
Joey Hess [Fri, 16 Sep 2022 18:11:25 +0000 (14:11 -0400)]
deal with ignoreinode config setting
Improve handling of directory special remotes with importtree=yes whose
ignoreinode setting has been changed. (By either enableremote or by
upgrading to commit
3e2f1f73cbc5fc10475745b3c3133267bd1850a7.)
When getting a file from such a remote, accept the content that would have
been accepted with the previous ignoreinode setting.
After a change to ignoreinode, importing a tree from the remote will
re-import and generate new content identifiers using the new config. So
when ignoreinode has changed to no, the inodes will be learned, and after
that point, a change in an inode will be detected as a change. Before
re-importing, a change in an inode will be ignored, as it was before the
ignoreinode change. This seems acceptble, because the user can re-import
immediately if they urgently need to add inodes. And if not, they'll
do it sometime, presumably, and the change will take effect then.
Sponsored-by: Erik Bjäreholt on Patreon
Joey Hess [Fri, 16 Sep 2022 17:40:27 +0000 (13:40 -0400)]
comments
Joey Hess [Fri, 16 Sep 2022 17:08:14 +0000 (13:08 -0400)]
comment
Joey Hess [Fri, 16 Sep 2022 16:52:00 +0000 (12:52 -0400)]
improve wording
Joey Hess [Fri, 16 Sep 2022 16:48:48 +0000 (12:48 -0400)]
comment
Joey Hess [Fri, 16 Sep 2022 16:39:43 +0000 (12:39 -0400)]
comment
eph@6377f195575d4a04abc70f20e0b00dffcc597d00 [Fri, 16 Sep 2022 09:30:44 +0000 (09:30 +0000)]
Added a comment
prancewit [Fri, 16 Sep 2022 08:39:09 +0000 (08:39 +0000)]
Added a comment
Joey Hess [Thu, 15 Sep 2022 19:18:45 +0000 (15:18 -0400)]
comment
Joey Hess [Thu, 15 Sep 2022 19:11:59 +0000 (15:11 -0400)]
vicfg: Include mincopies configuration
Sponsored-by: k0ld on Patreon
Joey Hess [Thu, 15 Sep 2022 18:05:47 +0000 (14:05 -0400)]
general purpose design for this todo
Sponsored-by: Boyd Stephen Smith Jr. on Patreon
Joey Hess [Thu, 15 Sep 2022 16:54:52 +0000 (12:54 -0400)]
belated response
Joey Hess [Thu, 15 Sep 2022 16:39:07 +0000 (12:39 -0400)]
comment
Joey Hess [Thu, 15 Sep 2022 16:27:41 +0000 (12:27 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Lukey [Thu, 15 Sep 2022 15:55:32 +0000 (15:55 +0000)]
Added a comment
Joey Hess [Thu, 15 Sep 2022 14:24:18 +0000 (10:24 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
eph@6377f195575d4a04abc70f20e0b00dffcc597d00 [Thu, 15 Sep 2022 11:55:56 +0000 (11:55 +0000)]
Lukey [Wed, 14 Sep 2022 15:09:20 +0000 (15:09 +0000)]
Added a comment
Joey Hess [Wed, 14 Sep 2022 01:36:16 +0000 (21:36 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
closing
Added a comment
prancewit [Tue, 13 Sep 2022 21:36:38 +0000 (21:36 +0000)]
Added a comment
prancewit [Tue, 13 Sep 2022 21:34:39 +0000 (21:34 +0000)]
removed
prancewit [Tue, 13 Sep 2022 21:32:45 +0000 (21:32 +0000)]
Added a comment
pat [Tue, 13 Sep 2022 21:15:33 +0000 (21:15 +0000)]
pat [Tue, 13 Sep 2022 21:14:03 +0000 (21:14 +0000)]
Added a comment
prancewit [Tue, 13 Sep 2022 19:45:23 +0000 (19:45 +0000)]
Added a comment: My current use case
Joey Hess [Tue, 13 Sep 2022 19:29:06 +0000 (15:29 -0400)]
mention that whereis --all skips dead keys
I looked at all man pages with --all, and this was the only one that
needs to add this disclaimer. Others like get and drop obviously
won't operate on dead keys anyway, because a dead key does not have any
content located anywhere.
Joey Hess [Tue, 13 Sep 2022 19:28:57 +0000 (15:28 -0400)]
improve wording
Joey Hess [Tue, 13 Sep 2022 19:13:06 +0000 (15:13 -0400)]
comment
Joey Hess [Tue, 13 Sep 2022 19:09:02 +0000 (15:09 -0400)]
update to work with modern git
Joey Hess [Tue, 13 Sep 2022 19:07:58 +0000 (15:07 -0400)]
comment
Joey Hess [Tue, 13 Sep 2022 18:58:45 +0000 (14:58 -0400)]
comment
Joey Hess [Tue, 13 Sep 2022 18:38:13 +0000 (14:38 -0400)]
fix reversion on skipping dead keys in --all/bare
Fix a reversion that made dead keys not be skipped when operating on all
keys via --all or in a bare repo. (Introduced in version 8.
20200720)
Also, improved the documentation of git-annex-dead, it does not only apply
to fsck --all.
Also, made git-annex fsck, when run on a file whose key is dead, display
that. Before, it displayed that only when run with --all, but with this
fix, it skips dead keys with --all. But it can still be run on a file that
uses a dead key, and displaying "This key is dead" explains to the user
why it does not consider missing content for it to be a problem.
Sponsored-by: k0ld on Patreon
Joey Hess [Tue, 13 Sep 2022 18:17:01 +0000 (14:17 -0400)]
comment
Joey Hess [Tue, 13 Sep 2022 18:13:31 +0000 (14:13 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 13 Sep 2022 18:13:19 +0000 (14:13 -0400)]
comment
yarikoptic [Tue, 13 Sep 2022 18:02:35 +0000 (18:02 +0000)]
Added a comment
Ilya_Shlyakhter [Tue, 13 Sep 2022 17:28:29 +0000 (17:28 +0000)]
Added a comment: re: many small files
Ilya_Shlyakhter [Tue, 13 Sep 2022 17:20:45 +0000 (17:20 +0000)]
Added a comment: many small files
Joey Hess [Tue, 13 Sep 2022 17:19:24 +0000 (13:19 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com